
			
			<div class="clear"></div> <!-- End .clear -->
			
			<div class="content-box"><!-- Start Content Box -->
				
				<div class="content-box-header">
					
					<h3>Content box</h3>
					
					<ul class="content-box-tabs"><!-- href must be unique and match the id of target div -->
						<li><a href="#tab2" class="default-tab">Forms</a></li>
					</ul>
					
					<div class="clear"></div>
					
				</div> <!-- End .content-box-header -->
				
				<div class="content-box-content">
					
					<div class="tab-content default-tab" id="tab2">
					
						<form action="" method="post" enctype="multipart/form-data" id="pro_add">
							
							<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
								
								<p>
									<label>产品名称</label>
										<?php echo "<input class='text-input small-input' type='text' id='small-input' name='name' value='$name'/>";?> <!-- Classes for input-notification: success, error, information, attention -->
										<br /><small>A small description of the field</small>
								</p>
								
								<p>
									<label>产品编号</label>
									<?php echo "<input class='text-input small-input datepicker' type='text' id='medium-input' name='identification_pro' value='$identification_pro'/>";?> 
									
								</p>
								
								<p>
									<label>产品介绍</label>
									 <?php echo "<input class='text-input medium-input datepicker' type='text' id='medium-input' name='intro' value='$intro'/>";?> 
								</p>
								
								<p>
									<label>产品图片</label>
									<input type="file" name="pro_img" />
								</p>
								
								<p>
									<label>详情图片</label>
									<input type="file" name="detail1" />
								</p>

								<p hidden="hidden">
									<label>详情图片</label>
									<input type="file" name="detail2" />
								</p>

								<p hidden="hidden">
									<label>详情图片</label>
									<input type="file" name="detail3" />
								</p>


								
								
								<p>
									<label>产品分类</label>              
									<select name="category_id" class="small-input">
										<?php foreach($pro_cate as $v):?>
										<option value="<?php echo $v['id']?>" <?php if($v['id']==$category_id){echo "selected='selected'";}?>><?php echo $v['category_name']?></option>
										<?php endforeach;?>
									</select> 
								</p>
								
							
								
								<p>
									<input class="button" type="submit" value="Submit" />
								</p>
								
							</fieldset>
							
							<div class="clear"></div><!-- End .clear -->
							
						</form>
						
					</div> <!-- End #tab2 -->        
					
				</div> <!-- End .content-box-content -->
				
			</div> <!-- End .content-box -->
			
			
			
<script type="text/javascript">

		$("input[name='detail1']").change(function(){

			$("input[name='detail2']").parent().removeAttr('hidden');

			return false;
		})


		$("input[name='detail2']").change(function(){

			$("input[name='detail3']").parent().removeAttr('hidden');

			return false;
		})

</script>
			
			
			<!-- Start Notifications -->
			
			
			
			
			<!-- End Notifications -->
			
			